/*
XCommander Extension
http://www.xcommander.ch/
*/

function XCommanderXCommandStub() {

}

XCommanderXCommandStub.prototype = {
	getAll : function(callback) {
		xcommander.lib.messaging.client.postMessage('xcommand', {
			'method' : 'getAll'
		}, callback);
	},
	getEnabled : function(callback) {
		xcommander.lib.messaging.client.postMessage('xcommand', {
			'method' : 'getEnabled'
		}, callback);
	},
	validate : function(xcommand, callback) {
		xcommander.lib.messaging.client.postMessage('xcommand', {
			'method' : 'validate',
			'xcommand' : xcommand
		}, callback);
	}
}